package cn.wen.mybatis.framework.exceptions;import cn.wen.mybatis.framework.executor.ErrorContext;/** * 异常工厂类 */public class ExceptionFactory {    private ExceptionFactory() {    }    public static RuntimeException wrapException(String message, Exception e) {        return new PersistenceException(ErrorContext.instance().message(message).cause(e).toString(), e);    }}